<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:constants="http://www.tuanzi.com/constants/tags">

<p:dialog  widgetVar="model-content-adding" modal="true" closable="true"
          resizable="true"
          style="position: absolute;">
    <p:outputPanel id="model-content-add-dialog">
        <div class="ui-g ui-fluid card" style="width:1000px;">
            <div class="ui-g-2">
                <p:outputLabel value="title"/>
            </div>
            <div class="ui-g-4">
                <p:inputText id="name" value="#{loanActivityModelInfoBean.selectContentItem.name}"/>
            </div>
            <div class="ui-g-2">
                <p:outputLabel value="key名称"/>
            </div>
            <div class="ui-g-4">
                <p:inputText id="content" value="#{loanActivityModelInfoBean.selectContentItem.content}"/>
            </div>
            <div class="ui-g-2">
                <p:outputLabel value="备注"/>
            </div>
            <div class="ui-g-4">
                <p:inputText id="remark" value="#{loanActivityModelInfoBean.selectContentItem.remark}"/>
            </div>
            <div class="ui-g-2">
                <p:outputLabel for="type" value="类型"/>
            </div>

            <div class="ui-g-4">
                <p:selectOneMenu id="type" value="#{loanActivityModelInfoBean.selectContentItem.type}">
                    <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                    <f:selectItem itemLabel="输入框" itemValue="0"/>
                    <f:selectItem itemLabel="图片" itemValue="1"/>
                    <f:selectItem itemLabel="图文" itemValue="2"/>
                    <f:selectItem itemLabel="时间" itemValue="3"/>
                    <f:selectItem itemLabel="单选框" itemValue="4"/>
                    <f:selectItem itemLabel="列表1" itemValue="5"/>
                </p:selectOneMenu>
            </div>

            <div class="ui-g-12">
                <p:commandButton value="确定" style="float: right"
                                 actionListener="#{loanActivityModelInfoBean.onSaveContent()}"
                                 process="@form"/>
            </div>

        </div>
    </p:outputPanel>
</p:dialog>

</html>
